package com.ktjy.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

@Component
public class TaskListenerImpl implements TaskListener{
    @Override
    public void notify(DelegateTask delegateTask) {
        if(delegateTask.getName().equals("销售主管审核")){
            delegateTask.setAssignee("孔师傅");
        }else if(delegateTask.getName().equals("销售经理审核")){
            delegateTask.setAssignee("刘师傅");
        }else if(delegateTask.getName().equals("总经理审核")){
            delegateTask.setAssignee("焦金喜");
        }
        //查询总经理 ZJL
        //查询销售主管 XSBZG
        //销售销售经理 XSBJL
    }
}
